/**      
 * @file		maximum.cpp
 * @description		Demonstrates user defined functions	
 * @course		CSCI 123 Section 00000
 * @assignment		Lecture 4 - Sample 5
 * @date		mm/dd/yyyy	
 * @author		Brad Rippe (00000000) brippe@fullcoll.edu
 * @version		1.0
 */
#include <iostream>
using namespace std;

/**
 * Determine the maximum value from three integers
 * @param digit1 - integer 1
 * @param digit2 - integer 2
 * @param digit3 - integer 3
 * @return the biggest integer
 */
int maximum(int digit1, int digit2, int digit3);
//double maximum(int digit1, int digit2, int digit3);

/**
 * @return zero if the application executes successfully
 */
int main() {
	cout << "Finding the max from 23, 0, 88\n";
	int max = maximum(23, 0, 88);
	cout << "The max value is " << max << endl;
	return 0;
}

int maximum(int digit1, int digit2, int digit3) {
	int max = 0;
	if(digit1 < digit2)
		max = digit2;
	else
		max = digit1;
	if(max < digit3)
		max = digit3;
	return max;
}
/************************************************************************/
/* THIS IS ILLEGAL                                                      */
/************************************************************************
double maximum(int digit1, int digit2, int digit3) {
	double max = 0.0;
	if(digit1 < digit2)
		max = static_cast<double>(digit2);
	else
		max = static_cast<double>(digit1);
	if(max < digit3)
		max = static_cast<double>(digit3);
	return max;
}
*/
